import { useState } from 'react';
import Logs from './Logs';
import BpmnViewer from '../BpmnViewer';
import './index.less';

export default function NewVersionLog(props: any) {
    const [current, setCurrent] = useState({});
    const [processLogData, setProcessLogData] = useState([]);

    return (
        <div className='process-log-wrapper'>
            <Logs {...props} current={current} setCurrent={setCurrent} setProcessLogData={setProcessLogData}/>
            <div className='process-log-bpmn-wrapper'>
                <BpmnViewer {...props} current={current} processLogData={processLogData} isH5={false}/>
            </div>
        </div>
    )
}